package cn.git.demo.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 *
 *订单实体类
 *
 */
public class OrderQuery  implements Serializable{
    private Long id;
    private Double orderPrice;   //order_price 订单价格
    private Double freight;  //运费
    private Double amountPay;   //amount_pay实付金额
    private Integer paymentWay;  //payment_way支付方式
    private Integer paymentCash;  //payment_cash,支付要求
    private Integer isPay;   //is_pay支付状态
    private Integer orderState;//order_state订单状态
    private Date createDate;//   create_date 创建时间
    private String note;   //备注
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    private static final long serialVersionUID= 1l;


    public Integer getIsPay() {
        return isPay;
    }

    public void setIsPay(Integer isPay) {
        this.isPay = isPay;
    }

    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Double getFreight() {
        return freight;
    }

    public void setFreight(Double freight) {
        this.freight = freight;
    }

    public Double getAmountPay() {
        return amountPay;
    }

    public void setAmountPay(Double amountPay) {
        this.amountPay = amountPay;
    }

    public Integer getPaymentWay() {
        return paymentWay;
    }

    public void setPaymentWay(Integer paymentWay) {
        this.paymentWay = paymentWay;
    }

    public Integer getPaymentCash() {
        return paymentCash;
    }

    public void setPaymentCash(Integer paymentCash) {
        this.paymentCash = paymentCash;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    private Integer pageNo = 1;
    private Integer pageSize = 4;
    private Integer startRow;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        startRow = (pageNo-1)*pageSize;
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        startRow = (pageNo-1)*pageSize;
        this.pageSize = pageSize;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setStartRow(Integer startRow) {
        this.startRow = startRow;
    }
}
